package com.nebor.product.domain.convert;

import com.nebor.product.domain.bo.ProductCategoryBO;
import com.nebor.product.domain.bo.ProductInfoBO;
import com.nebor.product.infra.basic.entity.ProductCategory;
import com.nebor.product.infra.basic.entity.ProductInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ProductInfoBoConverter {
    ProductInfoBoConverter INSTANCE = Mappers.getMapper(ProductInfoBoConverter.class);

    ProductInfo convertBoToEntity(ProductInfoBO productInfoBO);

    ProductInfoBO convertEntityToBo(ProductInfo info);

    List<ProductInfoBO> convertEntityToBoList(List<ProductInfo> productInfoList);
}
